package com.rfid.domain.VO;

import com.rfid.domain.RfidHouse;
import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class HouseVO{
    private static final long serialVersionUID = 1L;

    /** 仓库负责人 */
    @Excel(name = "仓库负责人")
    private String leaderName;

    public String getLeaderName() {
        return leaderName;
    }

    public void setLeaderName(String  leaderName) {
        this.leaderName = leaderName;
    }

    public HouseVO() {
    }

    public HouseVO(RfidHouse rfidHouse, String name){
        this.id=rfidHouse.getId();
        this.name=rfidHouse.getName();
        this.address=rfidHouse.getAddress();
        this.capacity=rfidHouse.getCapacity();
        this.leader=rfidHouse.getLeader();
        this.leaderName=name;
        this.status=rfidHouse.getStatus();
    }




    /** 仓库id */
    private Long id;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String name;

    /** 仓库地址 */
    @Excel(name = "仓库地址")
    private String address;

    /** 仓库容量 */
    @Excel(name = "仓库容量")
    private Long capacity;

    /** 仓库负责人 */
    private Long leader;

    /** 仓库状态 0-启用 1-禁用 */
    @Excel(name = "仓库状态 0-启用 1-禁用")
    private Integer status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setCapacity(Long capacity)
    {
        this.capacity = capacity;
    }

    public Long getCapacity()
    {
        return capacity;
    }
    public void setLeader(Long leader)
    {
        this.leader = leader;
    }

    public Long getLeader()
    {
        return leader;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("address", getAddress())
                .append("capacity", getCapacity())
                .append("leader", getLeader())
                .append("leaderName", getLeaderName())
                .append("status", getStatus())
                .toString();
    }
}
